users = {("root","123456")}
a = {"name1":[ "address1","爱好1"],
     "name2":["address2",  "爱好2"],
     "name3":["address3", "爱好3"]}
print("请登录")
user_name=input("请输入用户名：")
user_pswd=input("请输入密码：")
if  (user_name,user_pswd) in users :
       print ("欢迎登陆")
       print("请选择 1查看报名 2报名 3 退出系统")
       s = int(input("请输入"))
       if s == 1:
          for i,j in a.items():
            print(f"{i}\t{j[0]}\t{j[1]}")
       elif s == 2:
        nm=input("请输入要报名选手姓名")
        hb=input("爱好")
        ad=input("住址")
        new={nm:[hb,ad]}
        a.update(new)
        for i, j in a.items():
         print(f"{i}\t{j[0]}\t{j[1]}")
        quit()
else:
 print("登陆失败")



